Skip to content

The forward-engineering review's fixes: P4-07, P4-08, P4-11, L1-06 - #499

Merged
sknampally merged 1 commit into
developfrom
p4/review-fixes
Nov 29, 2026
Merged

sknampally merged 1 commit into
developfrom
p4/review-fixes

Conversation

@sknampally

Copy link
Copy Markdown
Collaborator

Fixes every point in the review of 28 November on #393, #394, #421 and #478. One commit, because the four stories share the same classes and files.

P4-07 Final specifications (#393)

Review point Fix
3270/CICS mechanics become modern acceptance criteria Rules only about the old screen's mechanics are a new class, legacy interaction: a refused key, cursor placement, paging or exit keys, and session plumbing such as COMMAREA or a first entry. They're read from the rule's own words, with no model. They get no acceptance criterion, are listed under Legacy interaction to replace, and go to the first screen task. A business rule that only mentions a key or a typed Y/N keeps its criteria, each with a note naming what the modern screen replaces. That keeps validations such as "Tran ID must be numeric". Technical rules stay design notes.
when_of stamps the rule's condition on counter-examples An example's WHEN is now its event ("the sign-on processes these inputs"), and the GIVEN holds the case. A double WHEN reads as one ("x and y").
Unrelated journey screens with empty component tables A screen with nothing of the capability is named as context ("Also in its journeys…"), with no table.

P4-08 The AI-DLC package (#394) and L1-06 (#478)

Review point Fix
No api or job task when a capability has screens but no design notes Every capability gets its service or job task. "Online and scheduled job" names the job's legacy programs.
copy_out rewrites synthetic emails and UUIDs The copy for the team uses a narrower cleaner, which keeps the application's own emails and IDs and still strips the account, ARNs, S3, the profile, run resources, paths and API keys. Anything published keeps the full cleaning.
table and entity treated as working storage Both are stored records, rendered with their columns, and the data task names them.

The UI and test-generation roles now say how to treat legacy interaction and unchecked golden cases.

P4-11 Golden datasets (#421)

Review point Fix
expected.values always empty Values an outcome states ("the declined total is 110.00", "(OUT-ACCT-CURR-CYC-DEBIT) is 2525.00") are read with no model, typed, and compared by value.
compare.py passes with unchecked cases An unchecked case is never a pass. The report gives verified/of. Exit codes: 0 when all were checked and none differ, 1 when a case differs or is missing, 2 when only unchecked cases remain, until --allow-unchecked.

Not in this PR (in the spec as next steps)

These need a live model round, which waits for your yes:

  • the model restating legacy interaction's business intent in channel-neutral words;
  • a model-written event for each example;
  • structured expected values from the reconciliation for every worked example. That's what would raise the share of checkable golden cases.

Checked

  • Tests: 538 pass offline, 12 of them new in tests/design/test_review_fixes.py. 4 existing expectations were updated for the new WHEN and equivalence behaviour.
  • Lint and types: ruff and mypy are clean.
  • JPetStore (a scratch copy of the local run, nothing committed), rebuilt with no model call. Saved answers still fit, so existing runs aren't charged for a new round.
    • All 67 tables are rendered with their columns, with 0 left as working storage.
    • 14 journey screens are context, and 0 component tables are empty.
    • Every package check passes.
    • 54 of 123 golden cases are checkable, and the other 69 are now reported as unchecked instead of passing.
  • CardDemo's example output isn't regenerated. Its run folder isn't on this Mac any more, so that needs a live design round.

Prepared with AI assistance.

, #394, #421, #478)

One commit for the four stories the review of 28 November reopened: they
change the same classes and the same files.

P4-07 (#393), the final specifications:
- Rules only about the old screen's mechanics (a refused key, cursor
  placement, a paging or exit key, session plumbing) are classed legacy
  interaction from their words, with no model. They get no acceptance
  criterion and are listed for the UI migration; a business rule that only
  mentions a key keeps its criteria, each with a note naming what the
  modern screen replaces. Technical rules stay design notes.
- An example's WHEN is its event ("the sign-on processes these inputs"),
  never the rule's condition a counter-example does not meet; a double
  WHEN reads as one.
- A journey screen with nothing of the capability is named as context,
  without an empty component table. The model step still reads every
  screen title, so saved answers fit and no round is redone for it.

P4-08 (#394) and L1-06 (#478), the package:
- Every capability gets its service or job task; a job beside the screens
  names its legacy programs.
- SQL tables and ORM entities are stored records, with their columns in
  each specification, as file records are.
- The copy for the team keeps the application's own e-mail addresses and
  IDs; anything published is still cleaned of both.
- The UI and test roles say how to treat legacy interaction and unchecked
  golden cases.

P4-11 (#421), golden datasets:
- Values an outcome states are read with no model and compared by value.
- An unchecked case is never a pass: compare.py reports what was verified
  and exits 2 until --allow-unchecked says the team's tests assert it.

Checked on a copy of the JPetStore run, rebuilt with no model: 67 tables
rendered with their columns, no empty component table, 14 screens as
context, every package check passing, 54 of 123 golden cases checkable.

Prepared with AI assistance.
@sknampally
sknampally merged commit 978bf15 into develop Nov 29, 2026
10 checks passed
@sknampally
sknampally deleted the p4/review-fixes branch November 29, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant